Skip to content

Fix Emscripten request cancellation - #182

Open
relh wants to merge 1 commit into
treeform:masterfrom
relh:relh/fix-emscripten-fetch-lifecycle
Open

Fix Emscripten request cancellation#182
relh wants to merge 1 commit into
treeform:masterfrom
relh:relh/fix-emscripten-fetch-lifecycle

Conversation

@relh

@relh relh commented Jul 22, 2026

Copy link
Copy Markdown

What changed

Windy now keeps the Emscripten fetch handle, closes it on cancellation or deadline, and ignores the synchronous abort callback after the request has settled.

Check

  • nim c -d:emscripten examples/httprequest.nim with Emscripten 6.0.2

Keep the native fetch handle so cancellation and deadlines can stop the request. Mark the request complete before closing it because Emscripten calls the error callback during an in-flight close.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant